<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      div:nth-child(1) {
        width: 400px;
        height: 300px;
        border: 1px solid #000;
        margin: 50px auto;
        padding: 40px;
        overflow: hidden;
      }
      div:nth-child(1) section {
        margin: 20px 0;
        transition: 0.5s;
        transform: translateX(-200px);
      }
      div:nth-child(1) section:nth-of-type(2) {
        transition-delay: 0.2s;
      }
      div:nth-child(1) section:nth-of-type(3) {
        transition-delay: 0.4s;
      }
      div:nth-child(1) span {
        background-color: blueviolet;
      }
      div:nth-child(1):hover section {
        transform: translateX(0);
      }

      div:nth-child(2) {
        width: 400px;
        height: 300px;
        border: 1px solid #000;
        margin: 50px auto;
        padding: 40px;
        position: relative;
        overflow: hidden;
      }
      div:nth-child(2) section {
        position: absolute;
        width: 500px;
        height: 180px;
        background-color: lightblue;
        top: 120%;
        left: 0;
        transition: 1s;
        transform-origin: 0 0;
      }
      div:nth-child(2):hover section {
        transform: translateY(-60px) rotate(-25deg);
      }

      div:nth-child(3) {
        width: 400px;
        height: 300px;
        border: 1px solid #000;
        margin: 50px auto;
        display: flex;
        overflow: hidden;
      }
      div:nth-child(3) section {
        width: 320px;
        height: 220px;
        border: 3px solid #000;
        margin: auto;
        transition: 2s;
        transform-origin: 0 30px;
        transform: translateY(-260px) rotate(-360deg);
      }
      div:nth-child(3):hover section {
        transform: translateY(0) rotate(0);
      }
    </style>
  </head>
  <body>
    <div>
      <p>Taylor Swift</p>
      <section>
        <span>brithday: 19xx-xx-xx</span>
      </section>
      <section>
        <span>height: 180</span>
      </section>
      <section>
        <span>weight: 67</span>
      </section>
    </div>

    <div>
      <section></section>
    </div>

    <div>
      <section></section>
    </div>
  </body>
</html>
